package org.apache.dolphinscheduler.api.service;

import org.apache.dolphinscheduler.api.utils.Result;
import org.apache.dolphinscheduler.dao.entity.Product;
import org.apache.dolphinscheduler.dao.entity.User;

import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author denggh
 * @since 2023-06-15
 */
public interface ProductService {

    Map<String, Object> selectProductById(Long productId);

    Map<String, Object> insertProduct(Product product);

    Map<String, Object> updateProduct(Product product);

    Map<String, Object> deleteProductById(Long productId);

    Result selectPageProductList(Product product, Integer pageSize, Integer pageNo, String searchVal, User loginUser);

    Map<String, Object> syncProduct();
}
